<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="common/js/mui.js"></script>
    <link href="common/css/mui.css" rel="stylesheet"/>
    <link href="common/css/app.css" rel="stylesheet"/>
</head>
<body>
	<header id="header" class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">WeChat</h1>
		<a class="mui-icon mui-icon-bars mui-pull-right"></a>
	</header>
	<nav class="mui-bar mui-bar-tab">
	    <a class="mui-tab-item mui-active">
	        <span class="mui-icon mui-icon-chat"></span>
	        <span class="mui-tab-label">微信</span>
	    </a>
	    <a class="mui-tab-item">
	        <span class="mui-icon mui-icon-person-filled"></span>
	        <span class="mui-tab-label">通讯录</span>
	    </a>
	    <a class="mui-tab-item">
	        <span class="mui-icon mui-icon-location"></span>
	        <span class="mui-tab-label">发现</span>
	    </a>
	    <a class="mui-tab-item">
	        <span class="mui-icon mui-icon-paperplane"></span>
	        <span class="mui-tab-label">我</span>
	    </a>
	</nav>
	<script>
			mui.init();
			mui.plusReady(function() {
				if (plus.storage.getItem('launchFlag')) {
					mui.openWindow({
						url:'./login/login.html',
						id:'login',
						styles:{
							popGesture:'none'
						},
						show:{
							aniShow:'none'
						}
					});	
				} else {
					// 在index.html页面判断是否第一次打开应用
					mui.openWindow({
						url:'./guide/guide.html',
						id:'guide',
						styles:{
							popGesture:'none'
						},
						show:{
							aniShow:'none'
						}
					});	
				}
			});
		</script>
</body>
</html>